package com.walleipt.demo.ioc.factorBean;

import org.springframework.beans.factory.SmartFactoryBean;

public class MySmartFactoryBean implements SmartFactoryBean<BeanA> {

	@Override
	public BeanA getObject() throws Exception {
		return new BeanA();
	}

	@Override
	public Class<?> getObjectType() {
		return BeanA.class;
	}

	@Override
	public boolean isSingleton() {
		return true;
	}

	@Override
	public boolean isPrototype() {
		return false;
	}

	// 这里会觉得的是否在初始化的时候就加载到容器中
	@Override
	public boolean isEagerInit() {
		return true;
	}

}
